package com.mzy.datepackage.M2022.May.twThree;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/5/25 16:27
 * @Version 1.0
 */
public class main {

    enum Color
    {
        RED, GREEN, BLUE;
    }


    public static void main(String[] args) {
//         String jarFilePath = "F:\\Programming documentation\\JAVA\\EveryDayTest\\MayEleven\\mzy-mqtt-maven\\mqtt-server\\target\\mqtt-server-1.0-SNAPSHOT-shaded.jar";
       String jarFilePath = main.class.getProtectionDomain().getCodeSource().getLocation().getPath();
//        String jarFilePath = this.getClass().getProtectionDomain().getCodeSource().getLocation().getFile();
        //                        System.exit(0);
        System.out.println(jarFilePath);



    }
}
